package org.axonframework.domain;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.BeanPath;
import com.querydsl.core.types.dsl.DateTimePath;

import java.time.LocalDateTime;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;


/**
 * QDateTimeRange is a Querydsl query type for DateTimeRange
 */
public class QDateTimeRange extends BeanPath<DateTimeRange> {

    private static final long serialVersionUID = -442787416L;

    public static final QDateTimeRange dateTimeRange = new QDateTimeRange("dateTimeRange");

    public final DateTimePath<LocalDateTime> end = createDateTime("end", LocalDateTime.class);

    public final DateTimePath<LocalDateTime> start = createDateTime("start", LocalDateTime.class);

    public QDateTimeRange(String variable) {
        super(DateTimeRange.class, forVariable(variable));
    }

    public QDateTimeRange(Path<? extends DateTimeRange> path) {
        super(path.getType(), path.getMetadata());
    }

    public QDateTimeRange(PathMetadata metadata) {
        super(DateTimeRange.class, metadata);
    }

}

